package com.b2bpsssm.controller.sysmanage;/**
 * @author JunYu
 * @create 2022-08-13--16:07
 */

import com.b2bpsssm.common.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @program: B2BPSSMSystem
 * @description: 用于发送业务消息的接口
 * @author: JunYu
 * @create: 2022-08-13 16:07
 **/
@Controller
@EnableSwagger2
@Api(value = "业务通知", tags = "业务通知api")
public class MessageController {
    //业务通知
    @RequestMapping(value = "/notice", method = RequestMethod.GET)
    @ApiOperation(value = "业务通知", notes = "通过员工id来查找员工的业务", httpMethod = "post", response = R.class)
    @ApiImplicitParams(
            {
                    @ApiImplicitParam(name = "id", value = "员工的id", paramType = "query", dataType = "String", required = true)
            }
    )
    @ResponseBody
    public R batchDelRoles(@RequestParam("id") int id) {
        R r = new R();
        r.setCode(200);
        r.setMassage("业务消息通知，需要查找员工id为" + id + "的业务");
        return r;
    }
}
